import java.util.Scanner;
public class 三个和尚 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);

        System.out.println("请输入第一个和尚身高:");
        int height1 = sc.nextInt();
        System.out.println("请输入第二个和尚身高:");
        int height2 = sc.nextInt();
        System.out.println("请输入第三个和尚身高:");
        int height3 = sc.nextInt();

        int tempheight = height1 > height2 ? height1 : height2;
        int maxheight = tempheight > height3 ? tempheight : height3;

        System.out.println("三个和尚最高的身高是" + maxheight);
    }
}
